'use strict'

class num{
    constructor(mdb){
        this.db=mdb
    }

    async getUserNum(){
        let numlist=[]
        let usernum=await this.db.model('users1').count()
        numlist.push(usernum)

        let goodsnum=await this.db.model('goods').count()
        numlist.push(goodsnum)

        let saynum=await this.db.model('says').count()
        numlist.push(saynum)

        let shopnum=await this.db.model('shop').count()
        numlist.push(shopnum)

        let adminnum=await this.db.model('admins1').count()
        numlist.push(adminnum)

        return numlist
    }
}
module.exports=num